<div id="content_header">
  <h3>Product Categories</h3>
</div>

<div class="row row-unstyled">
  <div class="col-md-12">
    <label>SEARCH</label>
  </div>
</div>

<div class="row">
  <div class="col-md-6 col-lg-4">
    <form class="form-vertical" ng-submit="false">
      <div class="input-group">
        <input class="form-control" type="text" name="keyword" placeholder="Type Name to search" ng-model="searchText.CategoryName">
        <span class="input-group-addon">Find!</span>
      </div>
    </form>
  </div>
  <div class="col-md-6">
    <a ui-sref="^.new" class="btn btn-primary">Register a new Product Category</a>
  </div>
</div>

<br>

<div class="row">
  <div class="col-md-12">
    <label>RESULTS</label>
    <div class="search-message">
      Found <span class="primary-color"><b>{{ productcategories.length | filter:searchText }}</b></span> records
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <table class="table table-stripped table-bordered" ng-show="productcategories.length > 0">
      <thead>
        <tr>
          <th>Name</th>
          <th>Code</th>
          <th>Action</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="productcategory in productcategories | filter:searchText">
          <td>{{ productcategory.Name }}</td>
          <td>{{ productcategory.Code }}</td>
          <td>
            <a class="" href="" ng-click="delete(productcategory.Id)"><i class="simple-icon-trash"></i></a>
            <a class="" ui-sref="^.show({id: productcategory.Id})"><i class="glyphicon glyphicon-edit"></i></a>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>